<?php

$obj->arr['0'] = [];
$arr[1][2] = [[]];